package com.niiwoo.civet.account.dao.mapper;

import com.niiwoo.civet.account.dao.entity.FundsFreezeOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface FundsFreezeOrderMapperExt extends FundsFreezeOrderMapper{

    void updateFreezeOrderByRequestNo(FundsFreezeOrder fundsFreezeOrder);

    FundsFreezeOrder selectFreezeOrderByPrimaryKeyForUpdate(@Param("id") Long id);

    FundsFreezeOrder selectFreezeOrderByRequestNo(@Param("requestNo")String requestNo);

    FundsFreezeOrder selectFreezeOrderByRequestNoForUpdate(@Param("requestNo")String requestNo);

    FundsFreezeOrder selectFreezeOrderByOrderId(@Param("orderId")Long orderId,@Param("orderType")Byte orderType);

    List<FundsFreezeOrder> listFreezeOrderList(@Param("status")Byte status);

}